#include "Worker.h"
#include <string>
int main(int argc, char const *argv[])
{
    // 参考文档：https://blog.csdn.net/Y_jay/article/details/88907341
    Person p1("mike wong");
    const std::string aStr = "Amy Hooool";
    p1.setName(aStr);
    p1.showPersonInfo();
    // error: call to deleted constructor of 'Person'
    // Person p2(p1);
    // error: no matching constructor for initialization of 'Person'
    // Person p2 = p1;
    const std::string jobName = "Coder";
    Worker w1(aStr, jobName);
    w1.showMeInfo();
    return 0;
}
